package cn.adair.xunfei;

import java.util.HashMap;
import java.util.Map;

public class InitResult {

    public static Map<String, Object> result(boolean success, String message, int code, String type) {
        Map<String, Object> result = new HashMap<>();
        result.put("success", success);
        result.put("message", message);
        result.put("code", code);
        result.put("type", type);
        return result;
    }

}
